package com.eastmoney.emis.edda.task.report;

import com.eastmoney.emis.edda.domain.valueobject.TimeFormatter;
import com.eastmoney.emis.edda.infrastructure.report.ReportType;
import com.eastmoney.emis.edda.task.AbstractTask;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @description: Description
 * @projectName: EDDA-HSBC
 * @package: com.eastmoney.emis.edda.task.report
 * @author: 汪程程
 * @date: 2023/4/17 10:07 AM
 * @version: 1.0
 */
public class ReportTask extends AbstractTask {


    private ReportType reportType;

    private LocalDate reportDate;

    public ReportTask(ReportType reportType, LocalDate reportDate) {
        this.reportType = reportType;
        this.reportDate = reportDate;
        this.id = reportType.name() + "_" + reportDate.format(TimeFormatter.YYYY_MM_DD);
    }

    public ReportType getReportType() {
        return reportType;
    }
    public LocalDate getReportDate() {
        return reportDate;
    }
}
